<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>????</title>
</head>
<!-- http://localhost:8070/pages/proxy.jsp?userName=dbmamanger&password=tonysoft&function=upload 
	 http://localhost:8070/pages/welcome.jsp
	 
	 http://localhost:8080/download/pages/proxy.jsp?userName=dbmamanger&password=tonysoft&function=upload
	 http://localhost:8080/download/pages/welcome.jsp
-->
<body>
<%
java.util.Enumeration en = request.getParameterNames();
while(en.hasMoreElements()){
	String oneParamName = (String)en.nextElement();
	String oneParamValue = (String)request.getParameter(oneParamName);
	request.setAttribute(oneParamName,oneParamValue);
}
session.setAttribute("dl_upload_userName",request.getParameter("userName"));
session.setAttribute("dl_upload_password",request.getParameter("password"));
if(request.getParameter("fileInfo.businessCode")!=null){
	session.setAttribute("dl_upload_businessCode",request.getParameter("fileInfo.businessCode"));
	session.setAttribute("dl_upload_busiType",request.getParameter("fileInfo.businessType"));
}

String contextPath = request.getContextPath();
String function = request.getParameter("function");
if(function != null){
	if(function.equalsIgnoreCase("upload")){
		//??????????????sendRedirect,????forward??forward??????url???????
		response.sendRedirect(contextPath+"/multiUploadAction.do");
	}else if(function.equalsIgnoreCase("download")){
		response.sendRedirect(contextPath+"/listUploadedFiles.do");
	} else {
		response.sendRedirect(contextPath+"/error.jsp");
	}
}
%>
</body>
</html>